import request from '@/utils/request';

// 获取手机验证码
export const getPhoneCode = (phone) => {
  return request({
    url: '/phone_code',
    method: 'post',
    data: {
      phone
    }
  });
};

export const login = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data
  });
};
